label: Clear layout after setting GtkLabel::lines property
authorBenjamin Otte <otte@redhat.com>
Mon, 8 Sep 2014 20:45:31 +0000 (22:45 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 15 Sep 2014 14:35:40 +0000 (16:35 +0200)
Otherwise the label will not pick up the property.

gtk/gtklabel.c

index f0bf38fa210e37ec7972e39984f50a10a7f36ce8..2c9e00774e4855eefecd04c9097d24790fe53109 100644 (file)
@@ -6846,6 +6846,7 @@ gtk_label_set_lines (GtkLabel *label,
   if (priv->lines != lines)
     {
       priv->lines = lines;
+      gtk_label_clear_layout (label);
       g_object_notify (G_OBJECT (label), "lines");
       gtk_widget_queue_resize (GTK_WIDGET (label));
     }